package com.far.game.xiuzhen.common.database.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author mike
 * @since 2022-07-15
 */
@ApiModel(value = "Skills",description = "技能组合对象")
@TableName("xz_skills")
public class Skills extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @TableId(value = "tid", type = IdType.AUTO)
    private Integer tid;

    /**
     * 所在区
     */
    @ApiModelProperty(value = "所在区")
    private Integer domainId;

    /**
     * 固定编号
     */
    @ApiModelProperty(value = "固定编号")
    private String sid;

    /**
     * 技能名称
     */
    @ApiModelProperty(value = "技能名称")
    private String skillName;

    /**
     * 是否被动技能 1被动技能 0主动技能
     */
    @ApiModelProperty(value = "是否被动技能", notes = " 1被动技能 0主动技能")
    private Integer passivity;

    /**
     * 消耗属性 存储xz_char_prop表的tid
     */
    @ApiModelProperty(value = "消耗属性   存储xz_char_prop表的tid")
    private Integer expendProp;

    /**
     * 消耗值
     */
    @ApiModelProperty(value = "消耗值")
    private Integer expendVal;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createAt;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateAt;

    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;


    /**
     * 被动触发特性(1被攻击时 2每回合触发 每秒触发)
     */
    @ApiModelProperty(value = "被动触发特性")
    private Integer passivityTriggerOnType;

    /**
     * 是否组合技能(1是 0不是)
     */
    @ApiModelProperty(value = "是否组合技能")
    private Integer isCombine;

    /**
     * 组合技能的子技能列表
     */
    @ApiModelProperty(value = "组合技能的子技能列表")
    private String combineSkLs;

    /**
     * 组合技子技能出招顺序(1随机 2顺序)
     */
    @ApiModelProperty(value = "组合技子技能出招顺序")
    private Integer combineSkOrder;






    public Integer getTid() {
        return tid;
    }

    public void setTid(Integer tid) {
        this.tid = tid;
    }


    public Integer getDomainId() {
        return domainId;
    }

    public void setDomainId(Integer domainId) {
        this.domainId = domainId;
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getSkillName() {
        return skillName;
    }

    public void setSkillName(String skillName) {
        this.skillName = skillName;
    }

    public Integer getPassivity() {
        return passivity;
    }

    public void setPassivity(Integer passivity) {
        this.passivity = passivity;
    }

    public Integer getExpendProp() {
        return expendProp;
    }

    public void setExpendProp(Integer expendProp) {
        this.expendProp = expendProp;
    }

    public Integer getExpendVal() {
        return expendVal;
    }

    public void setExpendVal(Integer expendVal) {
        this.expendVal = expendVal;
    }


    public LocalDateTime getCreateAt() {
        return createAt;
    }


    public void setCreateAt(LocalDateTime createAt) {
        this.createAt = createAt;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }


    public LocalDateTime getUpdateAt() {
        return updateAt;
    }


    public void setUpdateAt(LocalDateTime updateAt) {
        this.updateAt = updateAt;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Integer getPassivityTriggerOnType() {
        return passivityTriggerOnType;
    }

    public void setPassivityTriggerOnType(Integer passivityTriggerOnType) {
        this.passivityTriggerOnType = passivityTriggerOnType;
    }

    public Integer getIsCombine() {
        return isCombine;
    }

    public void setIsCombine(Integer isCombine) {
        this.isCombine = isCombine;
    }

    public String getCombineSkLs() {
        return combineSkLs;
    }

    public void setCombineSkLs(String combineSkLs) {
        this.combineSkLs = combineSkLs;
    }

    public Integer getCombineSkOrder() {
        return combineSkOrder;
    }

    public void setCombineSkOrder(Integer combineSkOrder) {
        this.combineSkOrder = combineSkOrder;
    }

    @Override
    public String toString() {
        return "Skills{" +
                "tid=" + tid +
                ", domainId=" + domainId +
                ", sid='" + sid + '\'' +
                ", skillName='" + skillName + '\'' +
                ", passivity=" + passivity +
                ", expendProp=" + expendProp +
                ", expendVal=" + expendVal +
                ", createAt=" + createAt +
                ", createBy='" + createBy + '\'' +
                ", updateAt=" + updateAt +
                ", updateBy='" + updateBy + '\'' +
                ", passivityTriggerOnType=" + passivityTriggerOnType +
                ", isCombine=" + isCombine +
                ", combineSkLs='" + combineSkLs + '\'' +
                ", combineSkOrder=" + combineSkOrder +
                '}';
    }
}
